Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-lite

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-lite

A tiny javascript type testing tool

  • 0.4.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

is-lite

NPM version build status Maintainability Test Coverage

A tiny javascript type testing tool!

Setup

npm install is-lite

Usage

import is from 'is-lite';

const value = '';

is.object(value) // false;

API

is.array

is.boolean

is.date

is.domElement

is.function

is.generator

is.iterable

is.map

is.nan

is.null

is.nullOrUndefined

is.number

is.numericString Returns true for a string that represents a number. For example, '42' and '-8'. Note: 'NaN' returns false, but 'Infinity' and '-Infinity' return true

is.object Functions and arrays are objects too.

is.plainObject Just objects

is.promise

is.regexp

is.set

is.string

is.symbol

is.undefined

is.weakMap

is.weakSet

Keywords

FAQs

Package last updated on 14 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc